package message

const (
	TypeSuccess MsgType = "success"
	TypeWarning         = "warning"
	TypeError           = "error"
)

const (
	ErrCodeOK           ErrCode = 200
	ErrCodeUnauthorized         = 400
)

type MsgType string

type ErrCode int

type Message struct {
	Type    MsgType `json:"type"`
	Message string  `json:"message"`
}

type Error struct {
	Code  ErrCode `json:"code"`
	Error string  `json:"error"`
}
